home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / demos / VisualAge for Java 2.0 Entry / setup / data1.cab / ide-e / IDE / cache / 1IGEOE7 (.txt) < prev    next >
Encoding:
Java Class File  |  1998-09-16  |  1.0 KB  |  17 lines

  1. package com.sun.java.swing.plaf.metal;
  2.  
  3. import com.sun.java.swing.text.JTextComponent;
  4. import java.awt.Component;
  5. import java.awt.Graphics;
  6.  
  7. public class MetalTextFieldUI$TextFieldBorder extends Flush3DBorder {
  8.    public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) {
  9.       if (c.isEnabled() && ((JTextComponent)c).isEditable()) {
  10.          MetalUtils.drawFlush3DBorder(g, x, y, w, h);
  11.       } else {
  12.          MetalUtils.drawDisabledBorder(g, x, y, w, h);
  13.       }
  14.  
  15.    }
  16. }
  17.